package com.example.permissionservice.service;

import com.example.permissionservice.dao.ResourceMapper;
import com.myprojects.common.pojo.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResourceService {

    @Autowired
    ResourceMapper resourceMapper;

    public List<Resource> selectAllResource(){
        return resourceMapper.selectByExample(null);
    }
}
